package com.kevin.exception;

public class ServiceException  extends Exception{
	
    protected String message;
    
    protected String errorCode;
    
    private static final long serialVersionUID = 5426228144648116777L;
    
    public ServiceException(){
        super();
    }
    
    public ServiceException(String message,Throwable t){
        super(message,t);
    }
    
    public ServiceException(String message,Throwable t,String errorCode){
    	super(message,t);
    }
    
    /**
     * @param message 异常代号
     */
    public ServiceException(String message) {
        super(message);
        this.message = message;
    }

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
}
